package OldFilesKarthik;

import java.io.*;
import java.net.*;
import java.util.*;

class Ride
{

public Ride()
    {
	/* declare objects for condition variables and counters */
	
    }


public void request_to_ride(int id)
{

    // wait until car is available; 

    //get into the car (remember the car id)

    //wait until car with your id signals that the ride is over

    //get out of car

}

public void request_car_boarding(int id)
{
    //wait for 2 riders to get on the car

}

public void request_car_leaving(int id)
{ 
    //wait until less than 2 cars are in the park
}

public void request_car_exit(int id)
    {
	//signal that the riders can exit
	//wait until riders have exited
    }
}
